import {postData} from "./http";

export const searchDemandsPage = (currentPage,size,data) => postData(`/demands/searchDemandsPage?currentPage=${currentPage}&size=${size}`, data);

export const selectDemandById = (data) =>postData(`/demands/selectDemandById`, data);

export const changeDemandById = (data) =>postData(`/demands/changeDemandById`, data);

export const deleteDemandById = (data) =>postData(`/demands/deleteDemandById`, data);

export const selectAllDemands = (data) =>postData(`/demands/selectAllDemands`, data);
